import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/dashboardIndex',//首页
    name: 'DashboardIndex',
    component: () => import('../views/dashboard/DashboardHome')
  },
  {
    path: '/elderlyList',//老人管理
    name: 'ElderlyList',
    component: () => import('../views/elderly/ElderlyManagement')
  },
  {
    path: '/nurseList',//护工管理
    name: 'NurseList',
    component: () => import('../views/nurse/NurseManagement')
  },
  {
    path: '/familyList',//家属管理
    name: 'FamilyList',
    component: () => import('../views/family/FamilyManagement')
  },
  {
    path: '/admissionManagement',//入住管理
    name: 'AdmissionManagement',
    component: () => import('../views/admission/AdmissionManagement')
  },
  {
    path: '/diningManagement',//餐饮管理
    name: 'DiningManagement',
    component: () => import('../views/dining/DiningManagement')
  },
  {
    path: '/financeManagement',//财务管理
    name: 'FinanceManagement',
    component: () => import('../views/finance/FinanceManagement')
  },
  {
    path: '/marketingManagement',//营销管理
    name: 'MarketingManagement',
    component: () => import('../views/marketing/MarketingManagement')
  },
  {
    path: '/serviceManagement',//服务管理
    name: 'ServiceManagement',
    component: () => import('../views/service/ServiceManagement')
  },
  {
    path: '/bedOverview',//床位全景
    name: 'BedOverview',
    component: () => import('../views/admission/bedOverview')
  },
  {
    path: '/admissionContract',//入住合同
    name: 'AdmissionContract',
    component: () => import('../views/admission/admissionContract')
  },
  {
    path: '/outingRegistration',//外出登记
    name: 'OutingRegistration',
    component: () => import('../views/admission/outingRegistration')
  },
  {
    path: '/visitorRegistration',//来访登记
    name: 'VisitorRegistration',
    component: () => import('../views/admission/VisitorRegistrationPage')
  },
  {
    path: '/incidentRegistration',//事故登记
    name: 'IncidentRegistration',
    component: () => import('../views/admission/incidentRegistration')
  },
  {
    path: '/dischargeApplication',//退住申请
    name: 'DischargeApplication',
    component: () => import('../views/admission/dischargeApplication')
  },
  {
    path: '/dishManagement',//菜品管理
    name: 'DishManagement',
    component: () => import('../views/dining/DiningManagement')
  },
  {
    path: '/mealPackages',//套餐管理
    name: 'MealPackages',
    component: () => import('../views/dining/MealPackages')
  },
  {
    path: '/orderMeals',//点餐
    name: 'OrderMeals',
    component: () => import('../views/dining/OrderMeals')
  },
  {
    path: '/prepaidRecharge',//预存充值
    name: 'PrepaidRecharge',
    component: () => import('../views/finance/PrepaidRecharge')
  },
  {
    path: '/consumptionRecords',//消费记录
    name: 'ConsumptionRecords',
    component: () => import('../views/finance/ConsumptionRecords')
  },
  {
    path: '/dischargeFeeReview',//退住费用审核
    name: 'DischargeFeeReview',
    component: () => import('../views/finance/DischargeFeeReview')
  },
  {
    path: '/consultationManagement',//咨询管理
    name: 'ConsultationManagement',
    component: () => import('../views/marketing/ConsultationManagement')
  },
  {
    path: '/reservationManagement',//预定管理
    name: 'ReservationManagement',
    component: () => import('../views/marketing/ReservationManagement')
  },
  {
    path: '/promotionManagement',//促销管理
    name: 'PromotionManagement',
    component: () => import('../views/marketing/PromotionManagement')
  },
  {
    path: '/serviceItems',//服务项目
    name: 'ServiceItems',
    component: () => import('../views/service/ServiceItems')
  },
  {
    path: '/careLevels',//护理等级
    name: 'CareLevels',
    component: () => import('../views/service/CareLevels')
  },
  {
    path: '/serviceReservations',//服务预定
    name: 'ServiceReservations',
    component: () => import('../views/service/ServiceReservations')
  },
  {
    path: '/elderlyAI',//AI大模型
    name: 'ElderlyAI',
    component: () => import('../views/AI/elderlyAI')
  },
  {
    path: '/',
    redirect: '/dashboardIndex'
  }
]

const router = new VueRouter({
  routes
})

export default router
